<template>
  <footer class="tab-bar">
    <router-link class="item" :to="{ name: 'Home' }">首页</router-link>
    <router-link class="item" :to="{ name: 'Hot' }">热榜</router-link>
    <router-link class="item" :to="{ name: 'Part' }">广场</router-link>
    <router-link class="item" :to="{ name: 'About' }">我的</router-link>
  </footer>
</template>

<script>
export default {
  name: "TabBarComponent"
};
</script>

<style scoped lang="scss">
$sky-blue: #6bc1d9;

.tab-bar {
  height: 1rem;
  background: $sky-blue;
  font-size: 0.5rem;
  color: #f00;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;

  .item {
    width: 25%;
  }
}
</style>
